﻿using Abp.AspNetCore.Mvc.Controllers;
using Batman.upyun.Services;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;

namespace Batman.upyun.Controllers.test
{
    public class HomeController : AbpController
    {
        public UpYunAppSvc UpYunService { get; set; }

        public HomeController()
        {
        }

        public async Task<ActionResult> Index()
        {
            var result = await UpYunService.WriteFileSync();

            return Json(result);
        }

        public ActionResult List()
        {
            return View();
        }
    }
}
